package com.laicunba.service.jzh;

import java.math.BigDecimal;

import com.laicunba.service.BaseService;
import com.laicunba.service.jzh.JzhAccountService.CreateJzhAccountParam;
import com.laicunba.service.jzh.JzhAccountService.CreateJzhAccountResult;

public interface JzhAccountService extends BaseService {
	public class CreateJzhAccountParam {
		private String userId;
		private String cityId;
		private String existBankId;
		private String bankCode;
		private String bankCardCode;
		private String bankName;
		private String userName;
		private String pid;

		public String getUserName() {
			return userName;
		}

		public void setUserName(String userName) {
			this.userName = userName;
		}

		public String getPid() {
			return pid;
		}

		public void setPid(String pid) {
			this.pid = pid;
		}

		public String getBankCode() {
			return bankCode;
		}

		public void setBankCode(String bankCode) {
			this.bankCode = bankCode;
		}

		public String getBankCardCode() {
			return bankCardCode;
		}

		public void setBankCardCode(String bankCardCode) {
			this.bankCardCode = bankCardCode;
		}

		public String getBankName() {
			return bankName;
		}

		public void setBankName(String bankName) {
			this.bankName = bankName;
		}

		public String getUserId() {
			return userId;
		}

		public void setUserId(String userId) {
			this.userId = userId;
		}

		public String getCityId() {
			return cityId;
		}

		public void setCityId(String cityId) {
			this.cityId = cityId;
		}

		public String getExistBankId() {
			return existBankId;
		}

		public void setExistBankId(String existBankId) {
			this.existBankId = existBankId;
		}

	}

	public class CreateJzhAccountResult {

	}

	/**
	 * 通过已绑定的银行卡开通金帐户
	 * 
	 * @param uid
	 * @return
	 */
	boolean createAccountWithBindCard(String uid, String cityId);

	BigDecimal add(String uid, BigDecimal amt, String certificateId, String type, String summary);

	BigDecimal subtract(String uid, BigDecimal amt, String certificateId, String type, String summary);

	CreateJzhAccountResult createAccount(CreateJzhAccountParam param);

}
